import 'package:flutter/material.dart';
import 'package:get/get.dart';

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('拍照助手'),
      ),
      body: Column(
        children: [
          TextButton(
            child: const Text('去拍照'),
            onPressed: () => Get.toNamed('/camera'),
          ),
          TextButton(
            child: const Text('去扫码'),
            onPressed: () => Get.toNamed('/qrcode'),
          ),
        ],
      ),
    );
  }
}
